import requests

API = "http://www.tuling123.com/openapi/api"
API_KEY = "65c7e221e25f4812b32c9600a0ef10b7"

while True:
    string = input(">>>")
    data = {
        "key": API_KEY,
        "info": string,
        "loc":"北京市中关村",
        "userid":"12345"
    }
    t = requests.post(API,data = data)
    print(t.json()["text"])
# print(t.json(), type(t.json()))
